package day1.homework.three;

/**
 * @创建人 MBY381
 * @创建时间 2022/6/28 00:16
 * @描述 暂无
 */
public class TestThree {
    public static void main(String[] args) {
        StackStimulator<Integer> stackStimulator = new StackStimulator<>();
        stackStimulator.push(1);
        stackStimulator.push(12);
        stackStimulator.push(13);
        stackStimulator.push(14);
        stackStimulator.push(15);
        stackStimulator.push(16);
        stackStimulator.push(17);
        stackStimulator.push(18);
        stackStimulator.push(19);
        stackStimulator.push(2);
        stackStimulator.push(19);
        System.out.println(stackStimulator);
        System.out.println(stackStimulator.pop());
        System.out.println(stackStimulator);
        System.out.println(stackStimulator.peek());
        System.out.println(stackStimulator.pop());
        System.out.println(stackStimulator);
        System.out.println(stackStimulator.peek());
        System.out.println(stackStimulator.pop());
        System.out.println(stackStimulator);
        System.out.println(stackStimulator.peek());
        System.out.println(stackStimulator.pop());
        System.out.println(stackStimulator);
        System.out.println(stackStimulator.peek());
    }
}
